package com.itheima;

public class Demo1 {
    String mane;

    public Demo1(String mane) {
        this.mane = mane;
    }

    public Demo1() {

    }

    public Demo1(int i, String 张三, int i1) {
    }

    public String getMane() {
        return mane;
    }

    public void setMane(String mane) {
        this.mane = mane;
    }

    @Override
    public String toString() {
        return "Demo1{" +
                "mane='" + mane + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Demo1 demo1 = (Demo1) o;

        return mane != null ? mane.equals(demo1.mane) : demo1.mane == null;
    }

    @Override
    public int hashCode() {
        return mane != null ? mane.hashCode() : 0;
    }
}
